package com.otitan.la.forest.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: java类作用描述
 * @Author: jiachangsen
 * @CreateDate: 2020/09/21 11:24
 * @UpdateUser: jiachangsen
 * @UpdateDate: 2020/09/21 11:24
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@Data
@ApiModel("菜单树 VO")
public class MenuTreeVO {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private String id;
    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "所属菜单编码")
    private String menuCode;

    /**
     * 父级节点
     */
    @ApiModelProperty(value = "父级节点")
    private String parentId;

    /**
     * 菜单等级
     */
    @ApiModelProperty(value = "菜单等级")
    private Integer grade;

    /**
     * 菜单排序
     */
    @ApiModelProperty(value = "菜单排序")
    private Integer orderNo;

    /**
     * 菜单图标
     */
    @ApiModelProperty(value = "菜单图标")
    private String icon;

    /**
     * 路由路径
     */
    @ApiModelProperty(value = "路由路径")
    private String path;

    /**
     * 应用编码
     */
    @ApiModelProperty(value = "应用编码")
    private String appCode;


    /**
     * 所属层级
     */
    @ApiModelProperty(value = "所属层级")
    private Integer levelType;

    /**
     * 是否有子级
     */
    @ApiModelProperty(value = "是否有子级")
    private Boolean Leaf = false;

    /**
     * 是否允许（yes、no）
     */
    @ApiModelProperty(value = "是否允许（yes、no）")
    private String isOpen;

    /**
     * 子级集合
     */
    @ApiModelProperty(value = "子菜单集合")
    private List<MenuTreeVO> children = new ArrayList<>();
}
